<template>
    <div class="commentButton">
        <x-button type="primary" @click.native="handleClick">点击提交</x-button>
    </div>
</template>

<script>
import { XButton } from 'vux'
export default {
    name: 'CommentButton',
    components: {
        XButton
    },
    methods: {
        handleClick () {
            this.$emit('commitcomment')
        }
    }
}
</script>

<style lang="stylus" scoped>
.commentButton >>> .weui-btn_primary
    background-color: #ff721f
.commentButton
    background-color: #fff
    padding: .2rem
    margin-top: .2rem
</style>

